export = (options = {}) => {
    return (hook: any) => {

        switch (hook.method) {
            case 'create': {
                let now = new Date()
                hook.data.created_time = now
                hook.data.updated_time = now
                break
            }
            case 'patch': {
                let now = new Date()
                hook.data.updated_time = now
                break
            }
        }

    };
};
